import com.adobe.cairngorm.control.CairngormEventDispatcher;

import net.optix.ip.events.DeleteInventorEvent;
import net.optix.ip.events.UpdateInventorEvent;
import net.optix.ip.events.UpdatePractitionerEvent;
import net.optix.ip.model.ModelLocator;
import net.optix.ip.vo.InventorVO;
[Bindable]
private var model:ModelLocator	=	ModelLocator.getInstance();

[Bindable]
private var inventor:InventorVO;

private function selectInventor():void
{
	inventor	=	InventorVO(inventors.selectedItem);
}

public function deletePractitioner():void
{
	var event:DeleteInventorEvent	=	new DeleteInventorEvent(inventor.inventorID);
	CairngormEventDispatcher.getInstance().dispatchEvent(event);
}